package com.xinhua.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xinhua.entity.SurveyDetail;
import com.xinhua.repository.SurveyDetailRep;

@Component
public class SurveyDetailService {
	@Autowired
	private SurveyDetailRep surveyDetailRep;
	
	public List<SurveyDetail> getSurveyDetail(){
		return (List<SurveyDetail>) surveyDetailRep.findAll();
	}
	
	public void save(SurveyDetail detail){
		surveyDetailRep.save(detail);
	}
}
